package net.qiqb.spring.domain.event;

import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.AliasFor;

@EventListener
public @interface DomainEventListener {

    @AliasFor(annotation = EventListener.class, value = "value")
    Class<?>[] value() default {};

    @AliasFor(annotation = EventListener.class, value = "classes")
    Class<?>[] classes() default {};

    @AliasFor(annotation = EventListener.class, value = "condition")
    String condition() default "";

    @AliasFor(annotation = EventListener.class, value = "id")
    String id() default "";
}
